package LinkedListDemo;

public class Main {
    public static void main(String[] args) {
            LinkedList list = new LinkedList();
            list.add(1);
            list.add(3);
            list.add2(4, 1);
            list.print();
            String s = list.toString();
            System.out.println(s);
        }
    }

